import request from '@/utils/request'

// 查询商圈数据
export function getCircle(query) {
  return request({
    url: '/circle/find',
    method: 'get',
    params: query
  })
}

// 同步商圈数据
export function refresh(data) {
  return request({
    url: '/circle/refresh',
    method: 'put',
    data: {
      idList: data
    }
  })
}

//自定义同步机构
export function refreshCustom(data) {
  return request({
    url: '/circle/refresh/custom',
    method: 'put',
    data: data
  })
}

//自定义同步机构
export function deleteCircle(data) {
  return request({
    url: '/circle/delete',
    method: 'delete',
    data: {
      idList: data
    }
  })
}
